package com.syb.entity.user;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.syb.entity.function.SysRole;

@SuppressWarnings("serial")
@Entity
@Table(name="rel_sys_user_role")
public class RelUserRole implements Serializable{

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int id;
	
	@OneToOne
	@JoinColumn(name="rel_sys_user_id")
	private SysUser sysUser;
	@OneToOne
	@JoinColumn(name="rel_sys_role_id")
	private SysRole sysRole;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public SysUser getSysUser() {
		return sysUser;
	}
	public void setSysUser(SysUser sysUser) {
		this.sysUser = sysUser;
	}
	public SysRole getSysRole() {
		return sysRole;
	}
	public void setSysRole(SysRole sysRole) {
		this.sysRole = sysRole;
	}
	
	
}
